# Maintainer: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Valery Kartel <valery.kartel@gmail.com>
pkgname=py3-httpretty
pkgver=1.0.3
pkgrel=2
pkgdesc="HTTP client mocking tool for Python"
url="https://github.com/gabrielfalcao/HTTPretty"
arch="noarch"
license="MIT"
depends="python3"
makedepends="python3-dev py3-setuptools"
source="https://files.pythonhosted.org/packages/source/h/httpretty/httpretty-$pkgver.tar.gz"
replaces="py-httpretty"
provides="py-httpretty=$pkgver-r$pkgrel"
builddir="$srcdir"/httpretty-$pkgver

build() {
	python3 setup.py build
}

check() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	# Fix permissions on .EGG-INFO
	chmod 644 "$pkgdir"/usr/lib/python3*/site-packages/*.egg-info/*
}

sha512sums="a6349257376c12198d0bf7923245c34f6b8a0889946ba0c2551fd3379a8d9a8e4610de81c66f945656c1879ad3fb1485f2f4148634fcc4e156b9f0a59f7dd758  httpretty-1.0.3.tar.gz"
